//前端用户业务逻辑接口
/*
function login(args){
    console.log("---users.js=>login()----")
    console.log(args)
    return axios.get(baseUrl+'/users/auth',{params:args});
}*/

function login(params){
    //console.log("---users.js=>login()----")
    //console.log(params)
    return axios.get(baseUrl+'/users/auth',{params});
}

function logout(){
    return axios.get(baseUrl+"/users/logout");

}

function reg(user){
    return axios.post(baseUrl+'/users/',user);
}